const Router = require('koa-router')
const {
	listSongs,
} = require('../modules/module-web_songs')

const songsRouter = new Router()

// songsRouter.use((ctx, next) => {
// 	next()
// })

songsRouter.post('/list', async (ctx, next) => {
	let params = ctx.request.body
	let result = await listSongs(params)
	ctx.response.body = result
})

module.exports = songsRouter